package cn.cboard.service.dao;

import java.util.Collection;

import cn.cboard.dao.ThreadDao;
import cn.cboard.model.ForumThread;
import cn.cboard.service.ThreadService;

public class ThreadServiceDao implements ThreadService{

	private ThreadDao threadDao;

	public ThreadServiceDao(ThreadDao threadDao) {
		this.threadDao = threadDao;
	}

	public Collection<ForumThread> listThread(Long forumId, Integer start, Integer count) {
		return threadDao.listThreads(forumId, start, count);		
	}

	public ForumThread getThread(Long threadid) {
		
		ForumThread forumThread = threadDao.getThread(threadid);
		return forumThread;
	}

	public void createThread(ForumThread forumThread) {
		// TODO Auto-generated method stub
		
	}

}
